<?php
$json_string = file_get_contents('usr.json');

$d = json_decode($json_string,true);
$userName=$_COOKIE['usn'];
$password=$_COOKIE['pwd'];
if($d[$userName]['pass']===$password){
    echo $d[$userName]['sc'];
}else{
    echo('您尚未登陆');
}